var load_val = document.getElementById("load_val");

// 创建对象
var queue = new createjs.LoadQueue();
// 加载进度百分比
queue.on('progress',function(e){
    var p = parseInt(e.progress * 100) + "%"
    load_val.innerHTML= p;
    if(p == "100%"){
        $("#indexLoad").css({"display":"none"});
        $("#gameContent").css({"display":"block"});
    }
},this);

// 加载资源列表
queue.loadManifest([
    {id:"1",src:"./img/begin_paodao_bg.png"},
    {id:"2",src:"./img/bg_back.jpg"},
    {id:"3",src:"./img/label_txt_2.jpg"},
    {id:"4",src:"./img/logo.png"},
    {id:"5",src:"./img/lottery_btn.png"},
    {id:"6",src:"./img/new.png"},
    {id:"7",src:"./img/num_0.png"},
    {id:"8",src:"./img/num_1.png"},
    {id:"9",src:"./img/num_2.png"},
    {id:"10",src:"./img/num_3.png"},
    {id:"11",src:"./img/num_4.png"},
    {id:"12",src:"./img/num_5.png"},
    {id:"13",src:"./img/num_6.png"},
    {id:"14",src:"./img/num_7.png"},
    {id:"15",src:"./img/num_8.png"},
    {id:"16",src:"./img/num_9.png"},
    {id:"17",src:"./img/pao1.png"},
    {id:"18",src:"./img/pao10.png"},
    {id:"19",src:"./img/pao11.png"},
    {id:"20",src:"./img/pao12.png"},
    {id:"21",src:"./img/pao2.png"},
    {id:"22",src:"./img/pao3.png"},
    {id:"23",src:"./img/pao4.png"},
    {id:"24",src:"./img/pao5.png"},
    {id:"25",src:"./img/pao6.png"},
    {id:"26",src:"./img/pao7.png"},
    {id:"27",src:"./img/pao8.png"},
    {id:"28",src:"./img/pao9.png"},
    {id:"29",src:"./img/paodao_bg1.png"},
    {id:"30",src:"./img/paodao_bg2.png"},
    {id:"31",src:"./img/power.png"},
    {id:"32",src:"./img/power_wrap.png"},
    {id:"33",src:"./img/repeat_play_btn.png"},
    {id:"34",src:"./img/result_bg.jpg"},
    {id:"35",src:"./img/sky_bg1.png"},
    {id:"36",src:"./img/sky_bg2.png"},
    {id:"37",src:"./img/tips1.png"},
    {id:"38",src:"./img/tips2.png"},
    {id:"39",src:"./img/tips3.png"},
    {id:"40",src:"./img/xingxing_bg.png"},
    {id:"41",src:"./img/zhentou1.png"},
    {id:"42",src:"./img/zhentou2.png"},
    {id:"43",src:"./img/zhentou3.png"},
    {id:"44",src:"./img/zhentou4.png"},
    {id:"45",src:"./img/zhentou_bg.png"}
]);